package msr.calculate;

import msr.util.RequestAction;

public class ShipFactory {
	protected String type;

	public ShipFactory(String t) {
		type = t;
	}

	public Calculation getCalculation() {
		if (type.equals(RequestAction.BARA_TYPE))
			return new Bara();
		else if (type.equals(RequestAction.TB_TYPE))
			return new TB();
		else if (type.equals(RequestAction.KAMIBUKURO_TYPE))
			return new KamiBukuro();
		else
			return new OtherType();
	}
}
